Repository navigation
fix(abstract-eth): verify fillNonce, transferToken, bridgeFunds, and DeFi native value (CECHO-2690) - #10241
Open
dpkjnr wants to merge 1 commit into
Open
fix(abstract-eth): verify fillNonce, transferToken, bridgeFunds, and DeFi native value (CECHO-2690)#10241dpkjnr wants to merge 1 commit into
dpkjnr wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
Contributor
|
|
Add fail-closed EVM TSS transaction verification for fillNonce, transferToken, HyperEVM bridgeFunds, and DeFi native value, plus surgical sdk-core propagation for stored bridgeFunds intent.amount, transferToken tokenData, and numeric fillNonce nonce. Ticket: CECHO-2690
dpkjnr
force-pushed
the
deepakjangid/cecho-2690-evm-tss-verify-fillnonce
branch
from
November 25, 2026 12:32
eacf25d to
c33fcb2
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements fail-closed EVM TSS transaction verification for
fillNonce,transferToken,bridgeFunds, and DeFi nativevalueunder CECHO-2690 (child ofCECHO-2679/CECHO-1905).What changed
fillNonce(verifyTssFillNonce)to === wallet.coinSpecific().baseAddress, empty calldata (0x),valuein{0, 1}wei (confirmed 2,331 EVM prod rows in Snowflake all self-send1wei with empty data), and matchingnoncewhen declared (caller or storedintent.nonce).intent.nonce(including0) inresolveEffectiveTxParams.transferToken(verifyTssTransferToken)transfer(address,uint256)via raw-serializedtxHex+isCanonicalTssCalldata,value == 0, exact same-network@bitgo/staticscontract resolution (fixing cross-network bare-symbol collisions such asusdtonarbeth:usdt), recipient binding, and COINS-2263 amount/quantity consistency (supports both prodeth/arbethamount.value: "0"+tokenData.tokenQuantityand equal-amount shapes while rejecting conflicting nonzero values).tokenDatainresolveEffectiveTxParamsso storedpendingApprovalre-signing works without callertxParams.transferToken(ERC721/ERC1155, plus Hedera HTS NFTtransferFromexcluding registered ERC-20s) warning-only while requiring positive NFT classification, exact same-network contract binding, canonical calldata, zero native value, and decoded recipient match.resolveTssTokenso known token conflicts / cross-network / explicitly empty token names setmismatch: trueand fail closed across single payment, batch payment, consolidation, andtransferToken.bridgeFunds(verifyTssBridgeFunds)hypeevmbridgeFundsrows calling HyperCore CoreWriter (0x3333...3333, selector0x17938e13sendRawAction(bytes), action header0x01000006, system address0x2222...2222,tokenId, scaled amountamount / 1e10,value == 0).hypeevm/thypeevm)bridgeFundsstrictly against CoreWriter, zero value, canonical outer & inner ABI, header, system address, token ID, scaleduint64bounds (rejects zero/dust/overflow), and emptyrecipients; rejectsbridgeFundsoutright on all non-HyperEVM EVM coins (includingsdk-coin-tempo'sverifyTransactionoverride).intent.amount→txParams.intentAmountinresolveEffectiveTxParams+BuildParams.tsfor storedpendingApprovaland default hot-signing paths.DeFi native
value(defiApprove,defiDeposit,defiWithdraw)txHex, enforcesvalue == 0on all three (wrap-nativeis the sole value-bearing DeFi intent), and addsisCanonicalTssCalldatachecks.Surgical
sdk-corenoterecipientUtils.ts(+35),iBaseCoin.ts(+6),BuildParams.ts(+3),baseTypes.ts(+1) mirroring#10206'sintent.tokenNamepropagation so storedpendingApprovalre-signing forbridgeFunds,transferToken, and numericfillNoncedoes not regress in prod.Verification
yarn --cwd modules/sdk-core build && yarn --cwd modules/abstract-eth build— passedsdk-core(1220),abstract-eth(220),sdk-coin-eth(714),sdk-coin-arbeth(56),sdk-coin-flr(61),sdk-coin-evm(71),sdk-coin-tempo(151)eslint --quietandprettier --checkclean on all 12 filesTicket: CECHO-2690